{extend name="article:base" /}
{block name="content"}
    {if isset($article) && $article.is_md ==1}
    <div id="test-editormd">
        <textarea name="info" id="info" style="width:68%;height:600px;visibility:hidden;resize:none;">{$article.article.info}</textarea>
    </div>
<script>
    //markdown 转换 js代码
    $(function () {
        var testEditormdView, testEditormdView2;
        testEditormdView2 = editormd.markdownToHTML("test-editormd", {
            htmlDecode: "style,script,iframe",  // you can filter tags decode
            emoji: true,
            taskList: true,
            tex: true,  // 默认不解析
            flowChart: true,  // 默认不解析
            sequenceDiagram: true,  // 默认不解析
        });
    });
</script>

    {else /}
    <p>
        {:htmlspecialchars_decode($article.article.info)}
    </p>
    {/if}
{/block}